<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        img:hover{
            cursor: pointer;
        }
    </style>
    <script>
        function changeImage() {
            document.getElementById("kaptcha").setAttribute("src","/kaptcha?"+new Date());
        }
    </script>
</head>
<body>
    <form method="post" action="/login">
        name:<input/>
        password:<input/>
        验证码：<input name="code"><img src="/kaptcha" id="kaptcha" onclick="changeImage()"/>
        <input type="submit"/>
    </form>
</body>
</html>